# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models
import time
u'''
当前注册的用户(基础)
'''
class regdn(models.Model):
    expires = models.IntegerField(null=True, verbose_name=u'过期时间')
    hostname = models.CharField(max_length=256, null=True, verbose_name=u'服务器名')
    metadata = models.CharField(max_length=256, null=True)
    network_ip = models.CharField(max_length=256, null=True, verbose_name=u'客户端IP')
    network_port = models.CharField(max_length=256, null=True, verbose_name=u'客户端端口')
    network_proto = models.CharField(max_length=256, null=True, verbose_name=u'连接协议')
    realm = models.CharField(max_length=256, null=True, verbose_name=u'域')
    reg_user = models.CharField(max_length=256, null=True, verbose_name=u'用户')
    token = models.CharField(max_length=256, null=True)
    url = models.TextField(null=True, verbose_name=u'注册URL')

    class Meta:
        db_table = 'v_regdn'
        verbose_name = u"在线分机"
        verbose_name_plural = verbose_name